package com.woniuxy.education.service.impl;

import com.woniuxy.education.entity.Allschool;
import com.woniuxy.education.entity.GradeDean;
import com.woniuxy.education.entity.School_Contrast;
import com.woniuxy.education.mapper.SchoolMapper;
import com.woniuxy.education.mapper.SchoolMasterMapper;
import com.woniuxy.education.service.SchoolMasterService;
import com.woniuxy.education.service.SchoolService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SchoolMasterServiceImpl implements SchoolMasterService {

    @Autowired
    SchoolMasterMapper schoolMasterMapper;

    @Override
    public List<School_Contrast> findSchoolContrast(int userid) {
        List<School_Contrast> school_contrast = schoolMasterMapper.findSchoolContrast(userid);

        return school_contrast;
    }

    @Override
    public List<GradeDean> findGradeDean() {

        List<GradeDean> gradeDeans = schoolMasterMapper.findGradeDean();

        return gradeDeans;
    }

    public  School_Contrast findContrast(){
        School_Contrast school_contrast = schoolMasterMapper.findContrast();
        return  school_contrast;
    }

}
